package com.delivery.www.po;

import com.delivery.www.util.AnnotationUtils;

/**
 * 评论表
 * @author 12970
 */
@AnnotationUtils.Table("comment")
public class Comment {
    @AnnotationUtils.Field(columnName = "comment_id")
    private Integer commentId;
    @AnnotationUtils.Field(columnName = "store_id")
    private Integer storeId;
    @AnnotationUtils.Field(columnName = "user_id")
    private Integer userId;
    @AnnotationUtils.Field(columnName = "content")
    private String content;
    @AnnotationUtils.Field(columnName = "belongs_comment_id")
    private Integer belongsCommentId;
    @AnnotationUtils.Field(columnName = "user_identity")
    private Integer userIdentity;
    /**
     * 获取用户名姓名
     */
    @AnnotationUtils.Field(columnName = "user_name")
    private String userName;

    public Comment() {
    }

    public Comment(Integer commentId, Integer storeId, Integer userId, String content, Integer belongsCommentId, Integer userIdentity, String userName) {
        this.commentId = commentId;
        this.storeId = storeId;
        this.userId = userId;
        this.content = content;
        this.belongsCommentId = belongsCommentId;
        this.userIdentity = userIdentity;
        this.userName = userName;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getBelongsCommentId() {
        return belongsCommentId;
    }

    public void setBelongsCommentId(Integer belongsCommentId) {
        this.belongsCommentId = belongsCommentId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserIdentity() {
        return userIdentity;
    }

    public void setUserIdentity(Integer userIdentity) {
        this.userIdentity = userIdentity;
    }
}
